/*
 *   Copyright 1999-2018 dragonshard.net.
 *   Licensed under the Apache License, Version 2.0 (the "License");
 *   you may not use this file except in compliance with the License.
 *   You may obtain a copy of the License at
 *        http://www.apache.org/licenses/LICENSE-2.0
 *   Unless required by applicable law or agreed to in writing, software
 *   distributed under the License is distributed on an "AS IS" BASIS,
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *   See the License for the specific language governing permissions and
 *   limitations under the License.
 */
package net.dragonshard.dsf.web.core.framework.log;

import java.util.Map;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;

/**
 * app请求日志详情
 *
 * @author Caratacus
 * @author mayee
 */
@Getter
@ToString
@Builder
@EqualsAndHashCode(callSuper = false)
public class Log {

  /**
   * 参数
   */
  private Map<String, String[]> parameterMap;
  /**
   * requestBody
   */
  private Object requestBody;
  /**
   * 请求路径
   */
  private String url;
  /**
   * 请求mapping
   */
  private String mapping;
  /**
   * 请求方法
   */
  private String method;
  /**
   * 日志需要打印的json字符串
   */
  private Object result;
  /**
   * 接口运行时间 单位:ms
   */
  private String runTime;
  /**
   * IP地址
   */
  private String ip;
  /**
   * UID
   */
  private String uid;
  /**
   * traceId
   */
  private String traceId;

}
